//
//  YZMMarketValueModel.m
//  YZMicroStock
//
//  Created by Lv.Dongdong on 16/11/10.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "YZMMarketValueModel.h"

@implementation YZMMarketValueModel

+ (instancetype)mapResponseString:(NSString *)responseString{
    
    if(responseString.length == 0) return nil;
    
    NSArray *contentArray = [responseString componentsSeparatedByString:@";"];
    
    if (contentArray.count < 3) {
        
        return nil;
    }
    
    YZMMarketValueModel *instance = [YZMMarketValueModel new];
    instance.currentMarkt = contentArray[0];
    instance.availableMoney = contentArray[1];
    instance.schemeMoney = contentArray[2];
    return instance;
}

@end
